/*** Eclipse Class Decompiler plugin, copyright (c) 2012 Chao Chen (cnfree2000@hotmail.com) ***/
package com.qihoopp.qcoinpay;

import android.text.TextUtils;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.EditText;
import android.widget.Toast;

final class ab implements View.OnClickListener {
    public final void onClick(View paramView) {
        paramView = aw.d(this.a).getText().toString().trim();
        String str1 = aw.e(this.a).getText().toString().trim();
        String str2 = "";
        String str3 = "";
        if (!(TextUtils.isEmpty(aw.a(this.a)))) {
            str2 = aw.f(this.a).getText().toString().trim();
            if ((TextUtils.isEmpty(paramView)) || (TextUtils.isEmpty(str1)) || (TextUtils.isEmpty(str2))) {
                Toast.makeText(aw.g(this.a), a.a(b.aA), 0).show();
                return;
            }
            if (!(aw.h(this.a))) {
                Toast.makeText(aw.g(this.a), a.a(b.aH), 0).show();
                return;
            }
        }
        else {
            str3 = aw.i(this.a).getText().toString().trim();
            if ((TextUtils.isEmpty(paramView)) || (TextUtils.isEmpty(str1)) || (TextUtils.isEmpty(str3))) {
                Toast.makeText(aw.g(this.a), a.a(b.aA), 0).show();
                return;
            }
        }
        if ((paramView.length() < 6) || (paramView.length() > 18)) {
            Toast.makeText(aw.g(this.a), a.a(b.aC), 0).show();
            return;
        }
        if ((cz.a(paramView)) || (cz.b(paramView)) || (cz.c(paramView))) {
            Toast.makeText(aw.g(this.a), a.a(b.aD), 0).show();
            return;
        }
        if (paramView.equals(aw.j(this.a))) {
            Toast.makeText(aw.g(this.a), a.a(b.aE), 0).show();
            return;
        }
        if (!(paramView.equals(str1))) {
            Toast.makeText(aw.g(this.a), a.a(b.aF), 0).show();
            return;
        }
        if (!(TextUtils.isEmpty(aw.a(this.a)))) {
            aw.b(this.a).b(paramView, str2);
            return;
        }
        aw.b(this.a).b(paramView, aw.k(this.a), str3);
    }
}